<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>UPDATE BOOKMARKS</title>
  <link href="/node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
  <style>
  .bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  @media (min-width: 768px) {
    .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
  }
  </style>
  <link rel="stylesheet" href="/public/css/updatebk.css">
</head>

<body>
  <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
    <a href="/new" class="clickbtn">新增书签</a>
    <a href="/res" class="clickbtn ret">重置所有</a>
    <a href="/" class="clickbtn">回到主页</a>
    <div class="table-responsive">
      <table class="table table-striped table-sm">
        <thead>
          <tr>
            <th>id</th>
            <th>网站名称</th>
            <th>图标链接</th>
            <th>网址</th>
          </tr>
        </thead>
        <tbody>
          {{ each _bk1 }}
          <tr>
            <td>{{ $index + 1 }}</td>
            <td>{{ $value.name }}</td>
            <td>{{ $value.picsrc }}</td>
            <td>{{ $value.netaddr }}</td>
            <td>
              <a href="/edit/?id={{ $value.id }}">编辑</a>
              <a href="/del/?id={{ $value.id }}" class="del">删除</a>
            </td>
          </tr>
          {{ /each }}
          <tr style="height: 40px;"> <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td></tr>
          {{ each _bk2 }}
          <tr>
            <td>{{ $index + 1 }}</td>
            <td>{{ $value.name }}</td>
            <td>{{ $value.picsrc }}</td>
            <td>{{ $value.netaddr }}</td>
            <td>
              <a href="/edit/?id={{ $value.id }}">编辑</a>
              <a href="/del/?id={{ $value.id }}" class="del">删除</a>
            </td>
          </tr>
          {{ /each }}
          <tr style="height: 40px;"> <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td></tr>
          {{ each _bk3 }}
          <tr>
            <td>{{ $index + 1 }}</td>
            <td>{{ $value.name }}</td>
            <td>{{ $value.picsrc }}</td>
            <td>{{ $value.netaddr }}</td>
            <td>
              <a href="/edit/?id={{ $value.id }}">编辑</a>
              <a href="/del/?id={{ $value.id }}" class="del">删除</a>
            </td>
          </tr>
          {{ /each }}
          <tr style="height: 40px;"> <td> </td>
            <td> </td>
            <td> </td>
            <td> </td>
            <td> </td></tr>
          {{ each _bk4 }}
          <tr>
            <td>{{ $index + 1 }}</td>
            <td>{{ $value.name }}</td>
            <td>{{ $value.picsrc }}</td>
            <td>{{ $value.netaddr }}</td>
            <td>
              <a href="/edit/?id={{ $value.id }}">编辑</a>
              <a href="/del/?id={{ $value.id }}" class="del">删除</a>
            </td>
          </tr>
          {{ /each }}
        </tbody>
      </table>
    </div>
  </main>
  <script src="/public/js/bk.js"></script>
</body>

</html>